<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEvaluateTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('evaluate', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('good_id');//商品id
            $table->integer('shop_id');//店铺id
            $table->integer('order_id');//订单id
            $table->string('order_sn',60);//订单编号
            $table->integer('good_evaluate');//商品评分
            $table->integer('service_evaluate');//服务评分
            $table->integer('express_evaluate');//快递评分
            $table->text('evaluate');//商品评价
            $table->integer('user_id');//评论人id
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('evaluate');
    }
}
